/*
 * Copyright (c) 2006-2018, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2018-11-06     SummerGift   first version
 */

#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "rtconfig.h"
#include "func_MonHandling.h"

int main(void)
{

#if defined MOTOR_CAN_DEVICE_NAME
    if (Can_Init() != RT_EOK)
        CPU_Reset(RT_TRUE);
#endif
    MOTOR_THREAD_Init();

    return RT_EOK;
}
